// 首先是一个高阶组件，对这个高阶组件实现函数柯里华
import React,{Component} from "react"
function ControllerItem (options) {
    console.log(options)
   return (WarpComponent)=>{
       console.log(WarpComponent,11111)
         return class extends Component {
             render () {
                 console.log(this.props,33333)
                 // ...this.props 把所有的参数都传递给WarpComponent
                 return <WarpComponent {...this.props}></WarpComponent>
             }
         }

   }
   
}
export default ControllerItem